<?php
	####################################################
	# library import and object instance.              #
	####################################################
	# 커먼 인클루드
	include_once( '../common.php' );

	####################################################
	# request data($_POST AND $_GET FROM $_REQUEST)    #
	####################################################
	# REQUEST(get and post variables)
	//$req = $_REQUEST;

	//$req = Request::clean_request($_REQUEST, 1);

	# GET(url variables)

	# POST(form variables)
	$pmode = Request::clean_individual($_POST['mode']);
	//$preturl = Request::clean_individual($_POST['returl']);
	//Nlog::puts('pmode',$pmode);
	//Nlog::puts('preturl',$preturl);
	//$pdic = NForm::dictionary($p, 'puid');


	# Validation(special case validate)
	/*/
	Validation::check_is_emptys($pmode);
	Validation::check_is_emptys($preturl);
	//*/
	####################################################
	# implementation                                   #
	####################################################
	$sec->individual_access();

	switch($pmode) {
		case "sidebar":
			$pstatus = Request::clean_individual($_POST['status']);
			$ret = $sidebar->status_change($pstatus);
			echo(sprintf('{"result":"%s"}', $ret));
			//$cnt = $appm->modify_packages($pmap);
			exit();
		break;

		default : break;
	} //endswitch


?>
<?php
	# HTML START
	echo $html->custom_header(TITLE);
	echo $tplt->page_construct_javascript();
	echo $html->custom_js("{$JS}common.js");
	echo $html->custom_css("{$CSS}common.css");
	echo $html->custom_body();
?>
	<?php $tplt->app_head($NAVI)?>
	<?php $tplt->tiles_admin_sidebar($NAVI)?>
	<?php $tplt->tiles_admin_contents($pkname, $pname, $pdesc)?>




<?php
	# HTML END
	echo $tplt->tiles_admin_footer();
	echo $tplt->page_destruct_javascript();
	include_once( '../endproc.php' );
	echo $html->html_footer();
?><? ######################################################################################################### ?>
	<div class="msgbox">
		<p>
			<?php switch($pmode) :
				case "modify" : ?>
					<strong>패키지 정보 수정 내역</strong><br />
					<?=$cnt?>개의 패키지 정보가 수정 되었습니다.
				<?php break; ?>

				<?php default : break; ?>
			<?php endswitch; ?>
		</p>
	</div>
	<span class="cbtn_s mart5" onclick="Mover.href('<?=$preturl?>');">확인</span>
